<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\BrewMethod;
use Illuminate\Http\Request;

class BrewMethodsController extends Controller
{
    //

    public function index(){
        $methods = (new BrewMethod())->withCount(['cafes'])->get();
        return response()->json(successDataFormat($methods));
    }
}
